/*
 * Created on May 25, 2011
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package com.timber.util;

/**
 * @author joju.varghese
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public class StringUtil {
	
	public static double stringtoDouble(String input)
	{
		double aDouble =0;
		if (input!=null && !"".equals(input))
		{
			 input = input.replaceAll(",","");
			 aDouble = Double.parseDouble(input);

		}
		return aDouble;
	}

}
